public class TestWithReturn {
    static int test(int var, int target) {
        if (var == target) {
            return 0;
        } else if (var > target) {
            return 1;
        } else {
            return -1;
        }
    }

    public static void main(String[] args) {
        System.out.println(test(10, 10));
        System.out.println(test(10, 5));
        System.out.println(test(5, 10));
    }
}
